Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

selection.Selection.[Symbol.iterator]

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
selection
Declared in
Selection
Package
libtmux
Source
packages/libtmux/src/selection.ts
[Symbol.iterator] ( ) → IterableIterator<Model>
method [source]
method [source]
[Symbol.iterator]

Iterate in tmux's own order.

Each call returns a fresh iterator, so a selection can be walked more than once: spread it and then loop it, and the second pass is not empty. This is what for...of, spread and destructuring all go through.

Examples

for (const window of snapshot.windows) window.name;
[...snapshot.windows].length === snapshot.windows.length;

0 declared, 0 inherited

Esc

Type to search.